package cn.yunhe;

import net.sf.json.JSONArray;

import java.util.ArrayList;
import java.util.List;

public class SouService {
    ISouDao souDao = new KeyDao();

    public JSONArray getKeyword(String keyword) {
        List<String> list = new ArrayList<>();
        list = souDao.getKeyword(keyword);
        JSONArray jsonArray = new JSONArray();
        jsonArray.addAll(list);
        return jsonArray;
    }

}
